Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect fields for modules and metricsets #1493

Merged
merged 1 commit into from Apr 26, 2016

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Apr 26, 2016

  • Add python script to collect fields.yml files
  • Update templates and docs
  • Add fields.yml for each module

@@ -4,19 +4,6 @@
"_all": {
"norms": false
},
"dynamic_templates": [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsg Did you add this part manually that is is now missing here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsg Ignore this one, found the issue

@ruflin ruflin force-pushed the fields-collector branch 2 times, most recently from 8ba5afa to 4ff96f6 Compare April 26, 2016 14:30
@@ -0,0 +1,36 @@
#!/usr/bin/env bash

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file isn't used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ups, that was a second try :-( forgot to remove it :-(

print fields_yml


collect()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not much a python programmer, but isn't the convention to use https://docs.python.org/2/library/__main__.html for the entrypoint.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good practice to do that because then you can import functions/classes from other files. Can still be added when actually needed.

* Add python script to collect fields.yml files
* Update templates and docs
* Add fields.yml for each module
@ruflin
Copy link
Member Author

ruflin commented Apr 26, 2016

@andrewkroh Thanks for the review. Version with changes pushed.

@andrewkroh
Copy link
Member

LGTM

@andrewkroh andrewkroh merged commit c5ec5a4 into elastic:master Apr 26, 2016
@ruflin ruflin deleted the fields-collector branch April 26, 2016 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants